package com.zhehekeji.opsys.api.entity;

// Generated 2017-3-27 16:00:54 by Hibernate Tools 3.4.0.CR1

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TSigninUser generated by hbm2java
 */
@Entity
@Table(name="t_signin_user")
public class TSigninUser implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9045993373498045528L;
	private Long id;
	private String userId;
	private String mobile;
	private String productCodes;
	private String productGolds;
	private Integer goldNum;
	private Date createTime;
	private Date updateTime;
	private Integer status;
	private Long cpCode;
	private TSignin tsignin;
	
	public TSigninUser() {
	}
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ID",length=20,nullable=false,unique=true)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="USER_ID",length=64,nullable=true)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	@Column(name="MOBILE",length=20,nullable=true)
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	@Column(name="PRODUCT_CODES",length=255,nullable=true)
	public String getProductCodes() {
		return productCodes;
	}
	public void setProductCodes(String productCodes) {
		this.productCodes = productCodes;
	}
	@Column(name="PRODUCT_GOLDS",length=255,nullable=true)
	public String getProductGolds() {
		return productGolds;
	}
	public void setProductGolds(String productGolds) {
		this.productGolds = productGolds;
	}
	@Column(name="GOLD_NUM",length=11,nullable=true)
	public Integer getGoldNum() {
		return this.goldNum;
	}

	public void setGoldNum(Integer goldNum) {
		this.goldNum = goldNum;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME", nullable=true)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="UPDATE_TIME", nullable=true)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Column(name="STATUS",length=2,nullable=true)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	@Column(name="CP_CODE",length=20,nullable=true)
	public Long getCpCode() {
		return this.cpCode;
	}

	public void setCpCode(Long cpCode) {
		this.cpCode = cpCode;
	}
	@ManyToOne(cascade=CascadeType.REFRESH,fetch=FetchType.EAGER,optional=true)
	@JoinColumn(name="SIGNIN_ID")
	public TSignin getTsignin() {
		return tsignin;
	}

	public void setTsignin(TSignin tsignin) {
		this.tsignin = tsignin;
	}
}
